<?php
	require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'../model/Service/MemberService.php';
    require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'../model/Context/BaseContext.php';
    require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'../model/ServiceResult/ServiceResult.php';
    require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'../model/Util/Tool.php';
    $memberService = new MemberService(); 
    $context = new BaseContext();
	$result = new ServiceResult();
	
	if(isset($_GET['email']))
	{
		$memberDomain = $memberService->findByEmail($context, $result, $_GET['email']);
		if($memberDomain != null)
			echo true;
		else
			echo false;
	}
	
?>
